package com.omp.entity;

import java.io.Serializable;

/**
 * 产品行业联合主键
 */
public class ProductCatalogPK implements Serializable {

	private static final long serialVersionUID = -180018755855102261L;
	private Integer industryId; // 行业
	private Integer productId; // 产品

	public Integer getIndustryId() {
		return industryId;
	}

	public void setIndustryId(Integer industryId) {
		this.industryId = industryId;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((industryId == null) ? 0 : industryId.hashCode());
		result = prime * result + ((productId == null) ? 0 : productId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ProductCatalogPK other = (ProductCatalogPK) obj;
		if (industryId == null) {
			if (other.industryId != null)
				return false;
		} else if (!industryId.equals(other.industryId))
			return false;
		if (productId == null) {
			if (other.productId != null)
				return false;
		} else if (!productId.equals(other.productId))
			return false;
		return true;
	}

}
